package com.yourname.myapplication.data.model

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "questions")
data class Question(
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,
    val questionText: String,
    val answer: String,
    val chapter: Int,  // 用于标识章节
    val explanation: String,  // 用于答题辅助的解析
    var isAnswered : Boolean=false,
    var isCorrect: Boolean?=null,
    val options: List<String>
)